Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/exclusions #56

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Endran
Copy link

@Endran Endran commented Nov 25, 2018

Exclude collection or document

To exclude collections or documents from backup you can use the option --exclude.

  • -E, --exclude - Comma separated list of excluded paths, use * for document id wildcard.

All documents and subcollections following a match will be excluded. By specifying the document ID a specific subcollection can be excluded. Use * for document ID wildcard.

Example:

firestore-backup-restore --accountCredentials path/to/account/credentials/file.json --backupPath /backups/myDatabase \
  --exclude "/logs,/users/*/details,/settings/private"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants